package test;

import javax.sound.midi.Soundbank;
import java.text.ParseException;
import java.text.SimpleDateFormat;

public class ss {
    public static void main(String[] args) throws ParseException {
        String a="2020-05-20";
        String a1="2020-05-22";
        SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd");
        long time = s.parse(a).getTime();
        long time1 = s.parse(a1).getTime();
        System.out.println(time);
        System.out.println(time1);
        if (time<time1) {
            System.out.println("222");
        }
    }
}
